package com.jlect.swebing.ui.client;

/**
 * Base interface for actions in UI components
 *
 * @author Sergey Kozmin
 * @since 20.11.2007 9:07:48
 */
public interface ActionEvent {
    public static final int CLICK_ACTION_EVENT     = 1;
    public static final int TEXT_ACTION_EVENT      = 2;

    /**
     * @return action event type. Could be either {@link #CLICK_ACTION_EVENT} or {@link #TEXT_ACTION_EVENT}
     */
    int getActionType();

    /**
     * @return the initial event that caused this action event
     */
    GEvent getInitialEvent();
}
